<template>
  <div id="app">
    <head-com></head-com>
    <el-row class="myview">
      <!--左侧菜单  -->
      <el-col class="mymenu"
              v-if="$store.state.navFlag">
        <app-menu></app-menu>
      </el-col>
      <el-col :class="$store.state.navFlag?'el_view':''">
        <bread-crumb v-if="$store.state.navFlag"></bread-crumb>
        <router-view />
      </el-col>
    </el-row>
  </div>
</template>
<script>
import headCom from './components/headCom.vue'
import appMenu from './components/appMenu.vue'
import breadCrumb from './components/breadcrumb.vue'
export default {
  components: {
    headCom,
    appMenu,
    breadCrumb
  }
}
</script>
<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: skyblue;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
.myview {
  display: flex;
}
.mymenu {
  flex: 1;
}
.el_view {
  border: 4px solid #ccc;
  height: 88vh;
  overflow-y: scroll;
  padding: 40px;
  padding-top: 10px;
  padding-left: 10px;
  box-sizing: border-box;
}
</style>
